<template>
	<view>
		<view class="main">
			<view class="datu">
				<view class="lefts">
					<view class="quans"></view>
					<view class="zis1">规格图片</view>
				</view>
				<view class="uoload">
					<u-upload width="180" height="180" max-count="1" max-size="1024*7" image-mode="aspectFill"
						class="upload" ref="uUpload" :action="action" :auto-upload="false" del-bg-color="#000"
						:file-list="fileList"></u-upload>
				</view>
			</view>

			<view class="left">
				<view class="quan"></view>
				<view class="zi1">规格名称</view>
			</view>
			<view class="lei">
				<input placeholder="请输入规格名称" type="text" value="" />
			</view>

			<view class="left">
				<view class="quan"></view>
				<view class="zi1">规格价格</view>
			</view>
			<view class="lei">
				<input placeholder="请选择规格价格" type="text" value="" />
			</view>

			<view class="left">
				<view class="quan"></view>
				<view class="zi1">规格库存</view>
			</view>
			<view class="lei">
				<input placeholder="请输入规格库存" type="text" value="" />
			</view>


		</view>
		
		<view class="over" @click="over">
			完成
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				action: 'http://www.example.com/upload',
				fileList: [],
			}
		},
		methods: {
		over(){
			uni.redirectTo({
				url:"../guige/guige"
			})
		}
		}
	}
</script>

<style lang="scss">
	page {
		background-color: #F2F4FA;
	}

	.main {
		margin: 30rpx;
		padding: 30rpx;
		width: 690rpx;
		// height: 692rpx;
		background: #FFFFFF;
		border-radius: 40rpx;

		.left {
			position: relative;

			.quan {
				width: 10rpx;
				height: 10rpx;
				background: #FF4646;
				border-radius: 50%;
				position: absolute;
				top: 17rpx;
			}

			.zi1 {
				margin: 30rpx 0 20rpx 20rpx;
			}
		}

		.lei {
			padding: 20rpx 30rpx;
			margin: 20rpx 0 30rpx 0;
			width: 630rpx;
			height: 80rpx;
			background: #F2F4FA;
			border-radius: 40rpx;
			line-height: 80rpx;
			font-size: 24rpx;
			font-family: PingFang SC;
			font-weight: 400;
			color: #181818;
			position: relative;

			input {
				width: 500rpx;
				height: 40rpx;
			}
		}

		.datu {
			width: 630rpx;
			height: 200rpx;
			display: flex;
			flex-wrap: nowrap;
			justify-content: space-between;

			.lefts {
				position: relative;
				top: 80rpx;

				.quans {
					width: 10rpx;
					height: 10rpx;
					background: #FF4646;
					border-radius: 50%;
					position: absolute;
					top: 17rpx;
				}

				.zis1 {
					margin: 0rpx 0 0 20rpx;
				}
			}
		}
	}
	.over{
		position: absolute;
		bottom: 50rpx;
		left: 30rpx;
		width: 690rpx;
		height: 100rpx;
		background: #181818;
		box-shadow: 0px 10rpx 40rpx 0px rgba(24, 24, 24, 0.26);
		border-radius: 50rpx;
		
		text-align: center;
		line-height: 100rpx;

		font-size: 32rpx;
		font-family: PingFang SC;
		font-weight: 500;
		color: #FFFFFF;
	}
</style>
